#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/3/21
# @Author  : geekhch
# @Email   : geekhch@qq.com
# @Desc    : None

# global looger
from myPath import CLUENER_LOG
from loguru import logger


import torch
if torch.cuda.is_available():
    device=torch.device("cuda:0")
    logger.info("use cuda!")
else:
    device=torch.device("cpu")
    logger.info("use cpu")